package org.qiaice.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.qiaice.entity.DishFlavor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DishVO {

    private Long id;

    // 菜品名称
    private String name;

    // 菜品分类 id
    private Long categoryId;

    // 菜品价格
    private BigDecimal price;

    // 图片
    private String image;

    // 描述信息
    private String description;

    // 0: 停售 1: 起售
    private Integer status;

    // 更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    // 分类名称
    private String categoryName;

    // 菜品关联的口味
    private List<DishFlavor> flavors;

    // private Integer copies;
}
